@echo off


set "scriptPath=%~dp0"
set "basePath=%scriptPath%.."


set "sourcePath=%basePath%\scripts\goland.env\workspace.xml"


if not exist "%sourcePath%" (
    echo "file %sourcePath% not exist"
    exit /b 1
)

set "aimPath=%basePath%\.idea\workspace.xml"

md "%basePath%\.idea\"

if exist "%aimPath%" (
    echo "file %aimPath% exist,please remove it"
    exit /b 1
)

copy "%sourcePath%" "%aimPath%"

echo "success copy %sourcePath% to %aimPath%"



